package edu.ntu.cloudroid.nongui.com;

import java.io.Serializable;

import edu.ntu.cloudroid.model.IDs.UploadID;
import edu.ntu.cloudroid.model.IDs;
import edu.ntu.cloudroid.model.UserData;

/**
 * @author anhdinh
 * Requesting meta information: default policyInfo, friend list, groupInfo
 */
public class MetaDataRequest extends RequestNoInputs implements Serializable, UserData{
	public static final int Profile = 0;
	public static final int Friend = 1;
	public static final int Group = 2;
	public static final int Policy = 3;
	
	private int requestType;
	private String userName, groupName;
	
	public MetaDataRequest(String un, int rt){
		this.requestType = rt;
		this.userName = un;
	}

	public MetaDataRequest(String un, String gn, int rt){
		this.userName = un;
		this.groupName = gn;
		this.requestType = rt;
	}
	
	public String getGroupName(){
		return this.groupName;
	}
	
	public int getRequestType() {
		return requestType;
	}

	public String getUserName() {
		return userName;
	}

	@Override
	public UploadID getUploadID() {
		return IDs.UploadID.MetaData;
	}
	
	
}
